<template>
    <div>
        <p>这是一个父fufufu组件</p>
        <p>{{ msg }}</p>
        <input type="text" v-model="msg" />
        <Children :info="msg" @changeParnet="changeMsg"/>
    </div>
  </template>
  
  <script>
  import Children from './Children.vue';
  export default {
      name:"Parent",
      data(){
          return{
              msg:"这是父组件的信息"
                }
          },
      components:{    
          Children
      },
      methods:{
        changeMsg(value){
            this.msg = value
        }
      }
  }
  </script>
  
  <style>
  
  </style>